package com.aranandroid.customview.ui.square

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.aranandroid.customview.R
import kotlinx.android.synthetic.main.activity_square_moreview.*
import kotlinx.android.synthetic.main.fragment_a.*

class AFragment() : Fragment(R.layout.fragment_a) {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
    }
    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        fragment_top.fmTemp = childFragmentManager
        fragment_top.fragments = linkedMapOf(Pair(R.id.f, FFragment()), Pair(R.id.h, HFragment()))
    }
}